package defaultPackage;
import java.awt.*;


public class DesignateMenu 
{
	boolean active = false;
	int textInterval = 16;
	Designation designation;
	public DesignateMenu(Designation designation)
	{
		this.designation = designation;
	}
	
	public void draw(Graphics g)
	{
		if (active)
		{
			g.setColor(Color.DARK_GRAY);
			g.fillRect(MainClass.windowXSize - 195, MainClass.menuHeight, 190, 3*textInterval + 5);
			
			
			g.setColor(Color.cyan);
			if (designation.getType() == tileType.Interior)
				g.setColor(Color.GREEN);
			g.drawString(" I - Interior", MainClass.windowXSize - 195 + 5, 1*textInterval+ MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (designation.getType() == tileType.Hull)
				g.setColor(Color.GREEN);
			g.drawString("H - Hull", MainClass.windowXSize - 195 + 5, 2*textInterval + MainClass.menuHeight);
			g.setColor(Color.cyan);
			if (designation.getType() == tileType.Space)
				g.setColor(Color.GREEN);
			g.drawString("X - Delete", MainClass.windowXSize - 195 + 5, 3*textInterval + MainClass.menuHeight);
			
			g.setColor(Color.RED);
			g.drawString("    20", MainClass.windowXSize - 40, 1*textInterval+MainClass.menuHeight);
			g.drawString("    40", MainClass.windowXSize - 40, 2*textInterval+MainClass.menuHeight);
		}
		else
		{}
	}
	
	public void setActive(boolean active)
	{
		this.active = active;
	}
	
	public boolean isActive()
	{
		return active;
	}
}
